#include <iostream>
using namespace std;
int main()
{
    int i, j;
    int number;
    cout << "How many number you want to enter?" << endl;
    cin >> number;
    int arry[number];
    // 读入数字
    for (i = 0; i <= number - 1; i++)
    {
        cin >> arry[i];
    }
    //想查询的数字
    cout << "Please enter the number you want to look:" << endl;
    int look;
    cin >> look;

    bool flag = false;  //设置判断标识
    for (j = 0; j <= number; j++)
    {
        if (arry[j] == look)
        {
            flag = true;
            break;
        }
    }
    if (flag == true)
    {
        cout << "The position of " << look << "is:" << j + 1 << endl;
        ;
    }
    else
    {
        cout << "Sorry we not find it."<<endl;
    }
    system("pause");
}